const shopInfo = wx.getStorageSync('shopInfo')

Page({
  data: {
    shopAddress: shopInfo.Remark,
    shopPhone: shopInfo.Address.PhoneNumber,
    shopName: shopInfo.Name,
    longitude: shopInfo.Longitude ,
    latitude: shopInfo.Latitude,
    markers: [{
      id: Number(shopInfo.Id),
      longitude: shopInfo.Longitude,
      latitude: shopInfo.Latitude
    }]
  },

  onCall: function () {
    wx.makePhoneCall({
      phoneNumber: this.data.shopPhone,
    })
  },
  goToAddress: function () {
    wx.openLocation({
      latitude: this.data.latitude,
      longitude: this.data.longitude,
      scale: 28,
      name: this.data.shopName,
      address: shopInfo.Address.Address1
    })
  }
})